﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using WebApiV3.Data.Entity;

namespace WebApiV3.Data
{
    public class Admin1002Context:DbContext
    {
        protected override  void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var str = "server=.;database=Admin110;uid=sa;pwd=lz20001130";
            optionsBuilder.UseSqlServer(str);
        }
        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<Logs> Logs { get; set; }
    }
}
